<template>
  <div>
    <Breadcrumb :titles="pathTitles"></Breadcrumb>
    <el-card class="box-card">
      <RightsTable :datas="permissons"></RightsTable>
    </el-card>
  </div>
</template>

<script>

  import Breadcrumb from 'components/content/Breadcrumb';

  import getPathTitleMixin from "mixin/getPathTitleMixin";

  import RightsTable from './components/RightsTable';

  import {permissons} from "@/network/permission/PermissionRequest";

  export default {
    name: "RightList",
    mixins:[getPathTitleMixin],
    data:function(){

      return {

        permissons:[]
      }
    },
    components:{
      Breadcrumb,
      RightsTable
    },
    created() {

      this.loadPermissions();
    },
    computed:{



    },
    methods:{

      loadPermissions(){


        permissons({
          'type':0
        }).then(data=>{

          this.permissons = data;
        });

      }

    }
  }

</script>

<style scoped>



</style>
